home *** CD-ROM | disk | FTP | other *** search
/ Internet Info 1997 December / Internet_Info_CD-ROM_Walnut_Creek_December_1997.iso / ietf / urn / urn-archives / urn-ietf.archive.9703 / 000001_owner-urn-ietf _Mon Mar 3 10:51:18 1997.msg < prev    next >
Internet Message Format  |  1997-04-01  |  16KB

  1. Received: (from daemon@localhost)
  2.     by services.bunyip.com (8.8.5/8.8.5) id KAA10961
  3.     for urn-ietf-out; Mon, 3 Mar 1997 10:51:18 -0500 (EST)
  4. Received: from mocha.bunyip.com (mocha.Bunyip.Com [192.197.208.1])
  5.     by services.bunyip.com (8.8.5/8.8.5) with SMTP id KAA10946
  6.     for <urn-ietf@services.bunyip.com>; Mon, 3 Mar 1997 10:51:12 -0500 (EST)
  7. From: jayhawk@windrose.omaha.ne.us
  8. Received: from windrose.omaha.ne.us by mocha.bunyip.com with SMTP (5.65a/IDA-1.4.2b/CC-Guru-2b)
  9.         id AA16278  (mail destined for urn-ietf@services.bunyip.com); Mon, 3 Mar 97 10:51:06 -0500
  10. Message-Id: <9703031551.AA16278@mocha.bunyip.com>
  11. Date: Mon, 3 Mar 97 09:51 CST
  12. To: internet-drafts@ietf.org
  13. Cc: urn-ietf@bunyip.com
  14. Subject: [URN] URN syntax v 03
  15. Sender: owner-urn-ietf@Bunyip.Com
  16. Precedence: bulk
  17. Reply-To: jayhawk@windrose.omaha.ne.us
  18. Errors-To: owner-urn-ietf@Bunyip.Com
  19.  
  20.  
  21.  
  22.  
  23.  
  24.  
  25.  
  26. Internet-Draft                                                Ryan Moats
  27. draft-ietf-urn-syntax-03.txt                                        AT&T
  28. Expires in six months                                         March 1997
  29.  
  30.  
  31.                                URN Syntax
  32.                  Filename: draft-ietf-urn-syntax-03.tx
  33.  
  34.  
  35. Status of This Memo
  36.  
  37.       This document is an Internet-Draft.  Internet-Drafts are working
  38.       documents of the Internet Engineering Task Force (IETF), its
  39.       areas, and its working groups.  Note that other groups may also
  40.       distribute working documents as Internet-Drafts.
  41.  
  42.       Internet-Drafts are draft documents valid for a maximum of six
  43.       months and may be updated, replaced, or obsoleted by other
  44.       documents at any time.  It is inappropriate to use Internet-
  45.       Drafts as reference material or to cite them other than as ``work
  46.       in progress.''
  47.  
  48.       To learn the current status of any Internet-Draft, please check
  49.       the ``1id-abstracts.txt'' listing contained in the Internet-
  50.       Drafts Shadow Directories on ftp.is.co.za (Africa), nic.nordu.net
  51.       (Europe), munnari.oz.au (Pacific Rim), ds.internic.net (US East
  52.       Coast), or ftp.isi.edu (US West Coast).
  53.  
  54.  
  55. Abstract
  56.  
  57.    Uniform Resource Names (URNs) are intended to serve as persistent,
  58.    location-independent, resource identifiers. This document sets
  59.    forward the canonical syntax for URNs.  A discussion of both existing
  60.    legacy and new namespaces and requirements for URN presentation and
  61.    transmission are presented.  Finally, there is a discussion of URN
  62.    equivalence and how to determine it.
  63.  
  64. 1. Introduction
  65.  
  66.    Uniform Resource Names (URNs) are intended to serve as persistent,
  67.    location-independent, resource identifiers and are designed to make
  68.    it easy to map other namespaces (which share the properties of URNs)
  69.    into URN-space. Therefore, the URN syntax provides a means to encode
  70.    character data in a form that can be sent in existing protocols,
  71.    transcribed on most keyboards, etc.
  72.  
  73.  
  74.  
  75.  
  76.  
  77. Expires 9/30/97                                                 [Page 1]
  78.  
  79.  
  80.  
  81.  
  82.  
  83. INTERNET DRAFT                 URN Syntax                     March 1997
  84.  
  85.  
  86. 2. Syntax
  87.  
  88.    All URNs have the following syntax (phrases enclosed in quotes are
  89.    REQUIRED):
  90.  
  91.                      <URN> ::= "urn:" <NID> ":" <NSS>
  92.  
  93.    where <NID> is the Namespace Identifier, and <NSS> is the Namespace
  94.    Specific String.  The leading "urn:" sequence is case-insensitive.
  95.    The Namespace ID determines the _syntactic_ interpretation of the
  96.    Namespace Specific String (as discussed in [1]).
  97.  
  98.    RFC 1630 [2] and RFC 1737 [3] each presents additional considerations
  99.    for URN encoding, which have implications as far as limiting syntax.
  100.    On the other hand, the requirement to support existing legacy naming
  101.    systems has the effect of broadening syntax.  Thus, we discuss the
  102.    acceptable syntax for both the Namespace Identifier and the Namespace
  103.    Specific String separately.
  104.  
  105. 2.1 Namespace Identifier Syntax
  106.  
  107.    The following is the syntax for the Namespace Identifier. To (a) be
  108.    consistent with all potential resolution schemes and (b) not put any
  109.    undue constraints on any potential resolution scheme, the syntax for
  110.    the Namespace Identifier is:
  111.  
  112.    <NID>         ::= <let-num> [ 1,31<let-num-hyp> ]
  113.  
  114.    <let-num-hyp> ::= <upper> | <lower> | <number> | "-"
  115.  
  116.    <let-num>     ::= <upper> | <lower> | <number>
  117.  
  118.    <upper>       ::= "A" | "B" | "C" | "D" | "E" | "F" | "G" | "H" |
  119.                      "I" | "J" | "K" | "L" | "M" | "N" | "O" | "P" |
  120.                      "Q" | "R" | "S" | "T" | "U" | "V" | "W" | "X" |
  121.                      "Y" | "Z"
  122.  
  123.    <lower>       ::= "a" | "b" | "c" | "d" | "e" | "f" | "g" | "h" |
  124.                      "i" | "j" | "k" | "l" | "m" | "n" | "o" | "p" |
  125.                      "q" | "r" | "s" | "t" | "u" | "v" | "w" | "x" |
  126.                      "y" | "z"
  127.  
  128.    <number>      ::= "0" | "1" | "2" | "3" | "4" | "5" | "6" | "7" |
  129.                      "8" | "9"
  130.  
  131.  
  132.  
  133.    This is slightly more restrictive that what is stated in [4] (which
  134.  
  135.  
  136.  
  137. Expires 9/30/97                                                 [Page 2]
  138.  
  139.  
  140.  
  141.  
  142.  
  143. INTERNET DRAFT                 URN Syntax                     March 1997
  144.  
  145.  
  146.    allows the characters "." and "+").  Further, the Namespace
  147.    Identifier is case insensitive, so that "ISBN" and "isbn" refer to
  148.    the same namespace.
  149.  
  150.    To avoid confusion with the "urn:" identifier, the NID "urn" is
  151.    reserved and MUST NOT be used.
  152.  
  153. 2.2 Namespace Specific String Syntax
  154.  
  155.    As required by RFC 1737, there is a single canonical representation
  156.    of the NSS portion of an URN.   The format of this single canonical
  157.    form follows:
  158.  
  159.    <NSS>         ::= 1*<URN chars>
  160.  
  161.    <URN chars>   ::= <trans> | "%" <hex> <hex>
  162.  
  163.    <trans>       ::= <upper> | <lower> | <number> | <other> | <reserved>
  164.  
  165.    <hex>         ::= <number> | "A" | "B" | "C" | "D" | "E" | "F" |
  166.                      "a" | "b" | "c" | "d" | "e" | "f"
  167.  
  168.    <other>       ::= "(" | ")" | "+" | "," | "-" | "." |
  169.                      ":" | "=" | "@" | ";" | "$" |
  170.                      "_" | "!" | "*" | "'"
  171.  
  172.    Depending on the rules governing a namespace, valid identifiers in a
  173.    namespace might contain characters that are not members of the URN
  174.    character set above (<URN chars>).  Such strings MUST be translated
  175.    into canonical NSS format before using them as protocol elements or
  176.    otherwise passing them on to other applications. Translation is done
  177.    by encoding each character outside the URN character set as a
  178.    sequence of one to six octets using UTF-8 encoding, and the encoding
  179.    of each of those octets as "%" followed by two characters from the
  180.    <hex> character set above. The two characters give the hexadecimal
  181.    representation of that octet.
  182.  
  183. 2.3 Reserved characters
  184.  
  185.    The remaining character set left to be discussed above is the
  186.    reserved character set, which contains various characters reserved
  187.    from normal use.  The reserved character set follows, with a
  188.    discussion on the specifics of why each character is reserved.
  189.  
  190.    The reserved character set is:
  191.  
  192.    <reserved>    ::= '%" | "/" | "?" | "#"
  193.  
  194.  
  195.  
  196.  
  197. Expires 9/30/97                                                 [Page 3]
  198.  
  199.  
  200.  
  201.  
  202.  
  203. INTERNET DRAFT                 URN Syntax                     March 1997
  204.  
  205.  
  206. 2.3.1 The "%" character
  207.  
  208.    The "%" character is reserved in the URN syntax for introducing the
  209.    escape sequence for an octet.  Literal use of the "%" character in a
  210.    namespace must be encoded using "%25" in URNs for that namespace.
  211.    The presence of an "%" character in an URN MUST be followed by two
  212.    characters from the <hex> character set.
  213.  
  214.    Namespaces MAY designate one or more characters from the URN
  215.    character set as having special meaning for that namespace.  If the
  216.    namespace also uses that character in a literal sense as well, the
  217.    character used in a literal sense MUST be encoded with "%" followed
  218.    by the hexadecimal representation of that octet.  Further, a
  219.    character MUST NOT be "%"-encoded if the character is not a reserved
  220.    character.  Therefore, the process of registering a namespace
  221.    identifier shall include publication of a definition of which
  222.    characters have a special meaning to that namespace.
  223.  
  224. 2.3.2 The other reserved characters
  225.  
  226.    RFC 1630 [2] reserves the characters "/", "?", and "#" for particular
  227.    purposes. The URN-WG has not yet debated the applicability and
  228.    precise semantics of those purposes as applied to URNs. Therefore,
  229.    these characters are RESERVED for future developments.  Namespace
  230.    developers SHOULD NOT use these characters in unencoded form, but
  231.    rather use the appropriate %-encoding for each character.
  232.  
  233. 2.4 Excluded characters
  234.  
  235.    The following list is included only for the sake of completeness.
  236.    Any octets/characters on this list are explicitly NOT part of the URN
  237.    character set, and if used in an URN, MUST be %encoded:
  238.  
  239.    <excluded> ::= octets 1-32 (1-20 hex) | "\" | """ | "&" | "<"
  240.                   | ">" | "[" | "]" | "^" | "`" | "{" | "|" | "}" | "~"
  241.                   | octets 127-255 (7F-FF hex)
  242.  
  243.    In addition, octet 0 (0 hex) should NEVER be used, in either
  244.    unencoded or %-encoded form.
  245.  
  246.    An URN ends when an octet/character from the excluded character set
  247.    (<excluded>) is encountered.  The character from the excluded
  248.    character set is NOT part of the URN.
  249.  
  250. 3. Support of existing legacy naming systems and new naming systems
  251.  
  252.    Any namespace (existing or newly-devised) that is proposed as an
  253.    URN-namespace and fulfills the criteria of URN-namespaces MUST be
  254.  
  255.  
  256.  
  257. Expires 9/30/97                                                 [Page 4]
  258.  
  259.  
  260.  
  261.  
  262.  
  263. INTERNET DRAFT                 URN Syntax                     March 1997
  264.  
  265.  
  266.    expressed in this syntax.  If names in these namespaces contain
  267.    characters other than those defined for the URN character set, they
  268.    MUST be translated into canonical form as discussed in section 2.2.
  269.  
  270. 4. URN presentation and transport
  271.  
  272.    The URN syntax defines the canonical format for URNs and all URN
  273.    transport and interchanges MUST take place in this format. Further,
  274.    all URN-aware applications MUST offer the option of displaying URNs
  275.    in this canonical form to allow for direct transcription (for example
  276.    by cut and paste techniques).  Such applications MAY support display
  277.    of URNs in a more human-friendly form and may use a character set
  278.    that includes characters that aren't permitted in URN syntax as
  279.    defined in this RFC (that is, they may replace %-notation by
  280.    characters in some extended character set in display to humans).
  281.  
  282. 5. Lexical Equivalence in URNs
  283.  
  284.    For various purposes such as caching, it's often desirable to
  285.    determine if two URNs are the same without resolving them. The
  286.    general purpose means of doing so is by testing for "lexical
  287.    equivalence" as defined below.
  288.  
  289.    Two URNs are lexically equivalent if they are octet-by-octet equal
  290.    after the following preprocessing:
  291.  
  292.            1. normalize the case of the leading "urn:" token
  293.            2. normalize the case of the NID
  294.            3. normalizing the case of any %-escaping
  295.  
  296.    Note that %-escaping MUST NOT be removed.
  297.  
  298.    Some namespaces may define additional lexical equivalences, such as
  299.    case-insensitivity of the NSS (or parts thereof).  Additional lexical
  300.    equivalences MUST be documented as part of namespace registration,
  301.    MUST always have the effect of eliminating some of the false
  302.    negatives obtained by the procedure above, and MUST NEVER say that
  303.    two URNs are not equivalent if the procedure above says they are
  304.    equivalent.
  305.  
  306. 6. Examples of lexical equivalence
  307.  
  308.    The following URN comparisons highlight the lexical equivalence
  309.    definitions:
  310.  
  311.            1- URN:foo:a123,456
  312.            2- urn:foo:a123,456
  313.            3- urn:FOO:a123,456
  314.  
  315.  
  316.  
  317. Expires 9/30/97                                                 [Page 5]
  318.  
  319.  
  320.  
  321.  
  322.  
  323. INTERNET DRAFT                 URN Syntax                     March 1997
  324.  
  325.  
  326.            4- urn:foo:A123,456
  327.            5- urn:foo:a123%2C456
  328.            6- URN:FOO:a123%2c456
  329.    URNs 1, 2, and 3 are all lexically equivalent.  URN 4 is not
  330.    lexically equivalent any of the other URNs of the above set.  URNs 5
  331.    and 6 are only lexically equivalent to each other.
  332.  
  333. 7. Functional Equivalence in URNs
  334.  
  335.    Functional equivalence is determined by practice within a given
  336.    namespace and managed by resolvers for that namespeace. Thus, it is
  337.    beyond the scope of this document.  Namespace registration must
  338.    include guidance on how to determine functional equivalence for that
  339.    namespace, i.e. when two URNs are the identical within a namespace.
  340.  
  341. 8. Security considerations
  342.  
  343.    This document specifies the syntax for URNs.  While some namespaces
  344.    resolvers may assign special meaning to certain of the characters of
  345.    the Namespace Specific String, any security consideration resulting
  346.    from such assignment are outside the scope of this document.  It is
  347.    strongly recommended that the process of registering a namespace
  348.    identifier include any such considerations.
  349.  
  350. 9. Acknowledgments
  351.  
  352.    Thanks to various members of the URN working group and <<your name
  353.    here!!>> for comments on earlier drafts of this document.  This
  354.    document is partially supported by the National Science Foundation,
  355.    Cooperative Agreement NCR-9218179.
  356.  
  357. 10. References
  358.  
  359.    Request For Comments (RFC) and Internet Draft documents are available
  360.    from <URL:ftp://ftp.internic.net> and numerous mirror sites.
  361.  
  362.          [1]         K. R. Sollins, "Requirements and a Framework for
  363.                      URN Resolution Systems," Internet Draft (work in
  364.                      progress),  November 1996.
  365.  
  366.  
  367.          [2]
  368.           T. Berners-Lee, "Universal Resource Identifiers in WWW," RFC
  369.           1630, June 1994.
  370.  
  371.  
  372.          [3]         K. Sollins and L. Masinter,  "Functional Require-
  373.                      ments for Uniform Resource Names," RFC 1737.
  374.  
  375.  
  376.  
  377. Expires 9/30/97                                                 [Page 6]
  378.  
  379.  
  380.  
  381.  
  382.  
  383. INTERNET DRAFT                 URN Syntax                     March 1997
  384.  
  385.  
  386.                      December 1994.
  387.  
  388.  
  389.          [4]         T. Berners-Lee, R. Fielding, L. Masinter, "Uniform
  390.                      Resource Locators (URL)," Internet Draft (work in
  391.                      progress),  December 1996.
  392.  
  393. 11. Editor's address
  394.  
  395.    Ryan Moats
  396.    AT&T
  397.    15621 Drexel Circle
  398.    Omaha, NE 68135-2358
  399.    USA
  400.  
  401.    Phone:  +1 402 894-9456
  402.    EMail:  jayhawk@ds.internic.net
  403.  
  404.  
  405.  
  406.  
  407.  
  408. Appendix A. Handling of URNs by URL resolvers/browsers.
  409.  
  410.    The URN syntax has been defined so that URNs can be used in places
  411.    where URLs are expected.  A resolver that conforms to the current URL
  412.    syntax specification [3] will extract a scheme value of "urn:"
  413.    rather than a scheme value of "urn:<nid>".
  414.  
  415.    An URN MUST be considered an opaque URL by URL resolvers and passed
  416.    (with the "urn:" tag) to an URN resolver for resolution.  The URN
  417.    resolver can either be an external resolver that the URL resolver
  418.    knows of, or it can be functionality built-in to the URL resolver.
  419.  
  420.    To avoid confusion of users, an URL browser SHOULD display the com-
  421.    plete URN (including the "urn:" tag) to ensure that there is no con-
  422.    fusion between URN namespace identifiers and URL scheme identifiers.
  423.  
  424.  
  425.               This Internet Draft expires September 30, 1997.
  426.  
  427.  
  428.  
  429.  
  430.  
  431.  
  432.  
  433.  
  434.  
  435.  
  436.  
  437. Expires 9/30/97                                                 [Page 7]
  438.  
  439.